<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Ad_ManageCoupon.aspx.cs" Inherits="Ad_ManageCoupon" %>
<%@ Register Src="~/Admin/Include/Ad_footer.ascx" TagName="Ad_footer" TagPrefix="uc3" %>
<%@ Register Src="Include/Ad_left.ascx" TagName="Ad_left" TagPrefix="uc2" %>
<%@ Register Src="Include/Ad_header.ascx" TagName="Ad_header" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Manage Coupon</title>
    <link href="include\styles.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table width="100%"  border="0" cellspacing="0" cellpadding="0">

	<!-- Masthead starts from here-->
	
	<uc1:Ad_header ID="Ad_header1" runat="server" />
	
	<!-- Masthead ends here-->
	
  <tr>
    <td></td>
    <td style="width: 859px">
    <table width="716" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="150" valign="top">
		
		<!-- Left panel starts from here-->
		
		<uc2:Ad_left ID="Ad_left1" runat="server" />
		
		<!-- Left panel ends from here-->
		</td>
        <td width="15" valign="top"><img src="../images/spacer.gif" width="15" height="1" /></td>
        <td width="551" valign="top">
        
        <table width="100%"  border="0" cellpadding="0" cellspacing="0" class="tblborder">
          <tr>
            <td width="2%" style="height: 35px"></td>
            <td width="96%" class="normalblack_12" align="center" style="height: 35px" ><b>Manage Coupons </b></td>
            <td width="2%" style="height: 35px"></td>
          </tr>
         
          <tr>
            <td height="15"></td>
            <td></td>
            <td></td>
          </tr>
           <tr><td valign="top" align="left" style="height: 21px"></td>
           <td valign="top" align="left" class="normalgrey_12" style="height: 21px" >Doctor Type :<asp:DropDownList CssClass="normalgrey_12" runat="Server" ID ="ddlType" AutoPostBack="true" OnSelectedIndexChanged="ddlType_SelectedIndexChanged">
               <asp:ListItem Value="1">Doctor</asp:ListItem>
               <asp:ListItem Value="2">Dentist</asp:ListItem>
           </asp:DropDownList></td><td valign="top" align="left" style="height: 21px"></td></tr>
           <tr><td  style="height:20px" colspan="2"></td></tr>
          <tr>
            <td height="200"></td>
            <td valign="top" class="normalblack_12" align="center" > 
            
                 <asp:Label ID="lblMsg" runat="server" Font-Bold="False" ForeColor="Red"></asp:Label>
        
        <asp:GridView ID="grdCoupon" runat="server" AutoGenerateColumns="false" ShowFooter="true" DataKeyNames="SNO" OnRowCommand="grdCoupon_RowCommand"  >  
            <Columns>
               <asp:BoundField HeaderText="ID" DataField="Id"  />
              <asp:BoundField HeaderText="Email" DataField="Email"  />
              <asp:BoundField HeaderText="Name" DataField="Name"  />
              <asp:BoundField HeaderText="Date of Creation" DataField="DateofCreation" />
               <asp:BoundField HeaderText="Coupon Code" ItemStyle-HorizontalAlign="center" DataField="CouponCode" /> 
               <asp:TemplateField HeaderText="Active" ItemStyle-HorizontalAlign="center">
               <ItemTemplate>
               <asp:LinkButton ID="lnkIsActive" runat="Server"  Text='<%# Bind("IsActive") %>' CommandArgument='<%# Eval("SNO") %>' CommandName="IsActive"></asp:LinkButton>
               </ItemTemplate>
               </asp:TemplateField>
                <asp:TemplateField HeaderText="Delete" ItemStyle-HorizontalAlign="center" >
                    <ItemTemplate >
                    <asp:ImageButton ImageUrl="~/Images/delete.gif" ID ="lnkDelete" runat="Server" CommandArgument='<%# Eval("SNO") %>' CommandName="DEL" />
                    </ItemTemplate>
                </asp:TemplateField>             
              
            </Columns>
            <RowStyle HorizontalAlign="Left" />
            <FooterStyle HorizontalAlign="Left" />
        
        </asp:GridView>
            
            </td>
            <td></td>
          </tr>
          <tr>
            <td height="20"></td>
            <td></td>
            <td></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
    <td style="width: 25px"></td>
  </tr>
  <tr>
    <td height="30" colspan="3"></td>
  </tr>
  <tr>
    <td height="1" bgcolor="#CCCCCC"><img src="../images/spacer.gif" width="1" height="1" alt="" /></td>
    <td bgcolor="#CCCCCC" style="width: 859px"><img src="../images/spacer.gif" width="1" height="1" alt="" /></td>
    <td bgcolor="#CCCCCC" style="width: 25px"><img src="../images/spacer.gif" width="1" height="1" alt="" /></td>
  </tr>
  <tr>
    <td height="20" colspan="3"></td>
  </tr>
  
	<!-- Bottom starts from here-->
	
    <uc3:Ad_footer ID="Ad_footer1" runat="server" />
	
	<!-- Bottom ends here-->
	
</table>
    </div>
    </form>
</body>
</html>
